/**
 * jims
 */
package com.jims.master.modules.doctor.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.Page;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.doctor.entity.ExamItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 检查申请明细DAO接口
 * @author 陈晓阳
 * @version 2017-03-14
 */
@MyBatisDao
public interface
        ExamItemDao extends CrudDao<ExamItem> {
    /**
     * 查询此个病人的所有待做和未做的检查项目
     * @param patientId
     * @return
     * @author 陈晓阳
     */
   public  List<ExamItem> queryExamByPatient(@Param("patientId") String patientId,@Param("orgId") String orgId,@Param("itemName") String itemName,@Param("page") Page<ExamItem> examItemPage);
    /**
     * 根据申请主表Id删除明细
     * @param applyId
     * @return
     * @author 陈晓阳
     */
   public int deleteByApplyId(@Param("applyId") String applyId);

    /**
     * 根据申请主表Id删除明细
     * @param applyId
     * @return
     * @author 陈晓阳
     */
    public int queryByApplyId(@Param("applyId") String applyId);

    /**
     * 根据申请主表查询 所有检查项目
     * @param applyId
     * @return
     * @author 赵宁
     */
    public List<ExamItem> findAllItems(@Param("applyId") String applyId);

    /**
     * 护士端打印检查单查询
     * @param wardCode
     * @return
     * @author CTQ
     */
    public List<BaseDto> printExamApply(@Param("wardCode") String wardCode);

    /**
     * 检查打印
     * @param applyhId
     * @return
     */
    public List<BaseDto> getExamItem(@Param("applyId")String applyhId);

}